package com.mmall.common;

public enum ResponseCode {

    SUCCESS(0,"SUCCESS"),
    ERROR(1,"ERROR"),
    NEED_LOGIN(10,"NEED_LOGIN"),
    ILLEGAL_ARGUMENT(12,"ILLEGAL_ARGUMENT");

    private int status;

    private String message;

    public void setStatus(int status) {
        this.status = status;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    private ResponseCode(int status, String  message){

        this.status=status;

        this.message=message;

    }
    public int getStatus() {
        return status;
    }

    public String getMessage() {
        return message;
    }

}
